﻿using System;

namespace ReadyApps.Wiki
{
    interface IWikiSecurityManager
    {
        bool IsUserAuthenticated { get; }
        string CurrentUsername { get; }
        bool CanEditPage { get; }
        bool CanCreatePage { get; }
        bool CanCreateFolder { get; }
        bool CanEditPermissions { get; }
        bool CanManageRevisions { get; }
        bool CanManagePublishing { get; }
        bool CanViewPage { get; }
        bool CanEditSettings { get; }
        void DeterminePagePermissions(bool securityIsEnabled, int pageID);
        void DetermineFolderPermissions(bool securityIsEnabled, int folderID);
        bool IsWikiPageModeAuthorized(WikiPageMode pageMode);
        bool IsSameUser(string username);
    }
}
